package beans;

import java.util.Map;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.context.FacesContext;

@ManagedBean(name="themeSwitcherBean")
@RequestScoped
public class ThemeSwitcherBean {
        
    private Map<String, String> themes;

    public Map<String, String> getThemes() {
        return themes;
    }

	public String getTheme() {
		Object themeObj = FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("theme");
//		if(SessionManager.isMUser())
//			return "violet-velvet";
		if(themeObj == null)
			return "dark";
		else
			return themeObj.toString();
	}
	
}
                    